﻿<slg50:PropertyGridDialog
	x:Class="HSS.Xaml.UI.Controls.CollectionEditorDialog"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
	xmlns:slg50="clr-namespace:HSS.Xaml.UI.Controls"
	Height="450" Width="650" Title="Collection Editor">
	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<Grid>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width=".4*" MaxWidth="300" MinWidth="200" />
				<ColumnDefinition Width=".6*" />
			</Grid.ColumnDefinitions>
			<Grid Margin="10,10,5,0">
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>
				<Grid.ColumnDefinitions>
					<ColumnDefinition />
					<ColumnDefinition />
					<ColumnDefinition Width="30" />
				</Grid.ColumnDefinitions>
				<TextBlock Grid.Row="0">Members:</TextBlock>
				<Border Grid.ColumnSpan="2" Grid.Row="1" BorderBrush="LightGray" BorderThickness="1">
					<sdk:DataGrid x:Name="dtgCollection" AutoGenerateColumns="False" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" HeadersVisibility="Row" IsReadOnly="True" IsTabStop="False" LoadingRow="dtgCollection_LoadingRow" RowDetailsVisibilityMode="Collapsed" SelectionChanged="dtgCollection_SelectionChanged">
						<sdk:DataGrid.Columns>
							<sdk:DataGridTextColumn Binding="{Binding}" />
						</sdk:DataGrid.Columns>
					</sdk:DataGrid>
				</Border>
				<Button Grid.Column="0" Grid.Row="2" Margin="10,5,0,0" Click="AddButton_Click" Content="Add" />
				<Button Grid.Column="1" Grid.Row="3" Margin="5,5,10,0" Click="RemoveButton_Click" Content="Remove" />
				<StackPanel Grid.Column="2" Grid.Row="1">
                    <Button Margin="5,0,5,0" Background="Transparent" BorderThickness="0" Click="MoveUpButton_Click">
						<Image Source="/SLG50;component/assets/arrowup_short_grey_16x16.png" />
					</Button>
					<Button Margin="5" Background="Transparent" BorderThickness="0" Click="MoveDownButton_Click">
						<Image Source="/SLG50;component/assets/arrowdown_short_grey_16x16.png" />
					</Button>
				</StackPanel>
			</Grid>
			<Grid Grid.Column="1" Margin="5,10,10,0">
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition />
				</Grid.RowDefinitions>
				<TextBlock>Properties:</TextBlock>
				<slg50:PropertyGrid x:Name="PropertyGrid" Grid.Row="1" VerticalAlignment="Stretch" />
			</Grid>
		</Grid>
		<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5">
			<Button Width="74" Margin="5" x:Name="btnOK" VerticalAlignment="Center" Content="OK" Click="btnOK_Click"/>
		</StackPanel>
	</Grid>
</slg50:PropertyGridDialog>